import request from '@/utils/request'


// 查询内容公告发布列表
export function listContent(query) {
  return request({
    url: '/gs/daily/list',
    method: 'get',
    params: query
  })
}

// 查询内容公告发布详细
export function getContent(id) {
  return request({
    url: '/gs/daily/' + id,
    method: 'get'
  })
}

// 新增内容公告发布
export function addContent(data) {
  return request({
    url: '/gs/daily',
    method: 'post',
    data: data
  })
}

// 修改内容公告发布
export function updateContent(data) {
  return request({
    url: '/gs/daily',
    method: 'put',
    data: data
  })
}

// 删除内容公告发布
export function delContent(id) {
  return request({
    url: '/gs/daily/' + id,
    method: 'delete'
  })
}





